package com.sx.export.domain.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserVO implements Serializable {

    /** 用户名称 */
    private String userId;
    /** 用户昵称 */
    private String userNickname;
    /** 创建时间 */
    private Date createTime;

    public static void main(String[] args) {
        String regex = "^w\\d{3}$";

        // 测试字符串
        String[] testStrings = {"w123", "w4567", "abc123", "w12a", "w1234", "w12"};

        for (String str : testStrings) {
            if (str.matches(regex)) {
                System.out.println(str + " 匹配");
            } else {
                System.out.println(str + " 不匹配");
            }
        }
    }
}
